Skip to content

Conversation

@pyramation
Copy link
Contributor

@pyramation pyramation commented Jan 14, 2026

Summary

Updates the export flow configuration to support new metaschema tables and columns that were added to the upstream pgpm-modules repository. This PR adds export configs for 4 new module tables and updates existing configs with new fields.

New table configs added:

  • table_module - table-level module configuration with node_type pattern
  • user_profiles_module - user profiles configuration
  • user_settings_module - user settings configuration
  • organization_settings_module - organization settings configuration

Updated existing configs:

  • field_module - added node_type field

Companion PRs:

Updates since last revision

  • Removed default_is_approved and default_is_verified fields from memberships_module config in favor of a secure-by-default approach (coordinated with companion PRs)

Review & Testing Checklist for Human

  • Verify field definitions in export-meta.ts match the actual database schema in constructive-db (especially field types like membership_type: 'int')
  • Verify the tableOrder placement in export-migrations.ts is correct - new modules should be exported after their dependencies
  • Ensure all 3 companion PRs are merged together to avoid schema/export mismatches
  • Test the export flow end-to-end with a database that has the new tables populated

Recommended test plan: After merging all companion PRs and deploying the schema changes, run the export flow against a test database and verify the new tables are exported correctly with all fields.

Notes

Link to Devin run: https://app.devin.ai/sessions/7ae0a5a06e9f4cbea02826b895676582

Requested by: Dan Lynch (@pyramation)

- Add table_module, user_profiles_module, user_settings_module, organization_settings_module configs to export-meta.ts
- Add node_type field to field_module config
- Add default_is_approved and default_is_verified fields to memberships_module config
- Add new module tables to tableOrder in export-migrations.ts

This aligns with the upstream changes to constructive-io/pgpm-modules.
@devin-ai-integration
Copy link
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

…hips_module config

These columns are being removed in favor of a secure-by-default approach.
@pyramation pyramation merged commit 9822e80 into main Jan 14, 2026
36 checks passed
@pyramation pyramation deleted the devin/1768351474-export-flow-updates branch January 14, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants